package cn.ly.core.obj;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.management.AttributeList;

public class SubObj extends SupObj{
	
	private String name = "ly2";
	
	
	public SubObj(String name,int age){
		super("ly3",34);
	}
	
	public static void main(String[] args) {
		SubObj s = new SubObj("ly3", 34);
		s.getNameAndAge();
		System.out.println(s.getName());
		Collections a;
		ArrayList b;
		AttributeList l;
		
		String str1 = new StringBuilder("计算机1").toString();
		String str2 = "计算机1";
		String str3 = "";
		System.out.println(str1 == str2);
		List<String> list = new ArrayList<String>();
		int i = 0;
		while(true){
			String.valueOf(i++).intern();
		}
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
